#ifndef __TITLE_MANAGER_H__
#define __TITLE_MANAGER_H__

struct TitleCSVInfo
{
	Int32			id;
	Int32			type;
	std::string		name;
	std::string		description;

	Int32			level;
	Int32			force_show;

	TitleCSVInfo()
	{
		id = 0;
		type = 0;
		name = "";
		description = "";
		level = 0;
		force_show = 0;
	}
};
class TitleManager:public singleton<TitleManager>
{
public:
	TitleManager();
	virtual ~TitleManager();
	void loadTitleCSV();
	TitleCSVInfo* GetTitleCSVInfo(Int32 csv_id);
private:
	CSVReader m_csvReader;
	std::map<Int32,TitleCSVInfo> m_mapTitleCSV;
};
#endif
